import java.io.IOException;
import java.util.logging.FileHandler;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 * This is just an example of what I think is needed for all
 * of our clases. If you can think of a better way let me
 * know.
 * @author John
 *
 */


public class TestLogger{  //Delete me later.
	public static void main(String[]args){
		Logger log = Logger.getLogger(TestLogger.class.getName());
		
		try {
			FileHandler fh = new FileHandler("testLog.txt");
			log.addHandler(fh);
		} catch (SecurityException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		log.setLevel(Level.FINEST);
		log.severe("A UGA programmer has tried to fix your code. System will shut down.");
		log.warning("Your laptop is messed up now.");
		log.info("Null pointer found.");
		log.finer("Go get help from a TA.");
		log.finest("Not really important.");
		
		//Technically this is better than using System.out.println() for every thing we want to test.
		//By including logging messages at certain locations, i'm guessing that we can
		//have a doctors system that will show us where the errors lie. Up to this point this is
		//all i have gotten. I was thinking about making a txt file log for each class but that
		//seems a little too complicated at this point. If anyone can, feel free to help with this!!
		//We need to do this for every class!
	}
	
	
}
